Servebolt\Optimizer\Utils\DatabaseMigration\MigrationRunner A

Total Complexity 70
Dependencies 0
Dependents 3
Total lines 400
Lines of code 231
Logical lines of code 116
Comment lines 101
Methods 23
Properties 8

Methods 23

Method Rating Maintainability Complexity Lines of code
shouldRunMigration()
A
50 11 32
runMigrationSteps()
A
51 9 28
resolveMigrations()
S
54 5 21
runMigration()
S
57 5 17
alreadyCompleted()
S
60 5 15
tablesExist()
S
61 4 13
migrateFromZero()
S
61 4 13
rollbackToZero()
S
61 4 13
updateMigratedVersion()
S
63 3 11
doMigration()
S
66 3 9
clearMigratedVersion()
S
68 2 8
getMigrationDirection()
S
77 2 3
getCurrentMigratedVersion()
S
70 2 7
maybeRunMigrations()
S
72 2 6
getAllMigrationFiles()
S
79 1 3
handleNewSite()
S
71 1 6
setCurrentVersions()
S
76 1 4
cleanup()
S
80 1 3
migrate()
S
80 1 3
migrateFresh()
S
77 1 4
run()
S
80 1 3
handleDeletedSite()
S
71 1 6
migrationVersionOptionsKey()
S
79 1 3